package com.zx.oa.service.job;

import com.zx.oa.entity.CheckJob;
import com.zx.oa.entity.Job;

import java.util.List;

public interface JobService {

    /**
     * 查询考勤信息
     * @param queryMajor
     * @param queryClassName
     * @param currentPageNo
     * @param pageSize
     * @return List<Work>
     */
    List<Job> getJobList(String queryMajor, String queryClassName, int currentPageNo, int pageSize);

    /**
     * 查询总记录数
     * @param queryMajor
     * @param queryClassName
     * @return int
     */
    int getJobTotalCount(String queryMajor, String queryClassName);

    /**
     * 查询专业
     * @return List<Job>
     */
    List<Job> getJobMajorList();

    /**
     * 查询班级名称
     * @return List<Job>
     */
    List<Job> getJobClassNameList();

    /**
     * 添加到CheckJob表中
     * @param checkJob
     * @return boolean
     */
    boolean upsetJob(CheckJob checkJob);
}
